//
//  WDGoutWaitAssignServiceInfoView.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2025/3/27.
//

#import "WDGoutWaitAssignServiceInfoView.h"
#import "WDArrivalServiceDetailModel.h"

@interface WDGoutWaitAssignServiceInfoView ()

@property (nonatomic, strong) WDArrivalServiceDetailModel *taskDetailModel;

/// 创建时间
@property (nonatomic, strong) WDTaskDetailBasicSingleView *createTimeView;

@end

@implementation WDGoutWaitAssignServiceInfoView

- (void)initWithSubView {
    [super initWithSubView];
    self.backgroundColor = [UIColor whiteColor];
}

/// 创建时间
- (void)initWithCreateTimeView {
    if (!_createTimeView) {
        CGRect frame = CGRectMake(0, 0, self.width, kWDTaskDetailBasicSingleViewHeight);
        _createTimeView = [[WDTaskDetailBasicSingleView alloc] initWithFrame:frame];
        [self addSubview:_createTimeView];
    }
    if (self.taskDetailModel) {
        [_createTimeView updateWithViewTitle:@"创建时间" value:self.taskDetailModel.createTime valueHeight:18];
    }
}




- (void)updateWithViewData:(id)data {
    self.taskDetailModel = data;
    
    [self initWithCreateTimeView];

}

@end
